package com.zb.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.zb.excel.converter.CodeStoreStatusIntegerToStringConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Author WEN
 * @Date 2024/3/6 0006
 **/
@Data
@ApiModel("一物一码导出Excel")
@HeadRowHeight(30)  // 表头行高
@ContentRowHeight(15)  //内容行高
@ColumnWidth(19)  //列宽
public class CodeExportExcel {

    @ApiModelProperty(value = "一物一码")
    @ExcelProperty(value = "一物一码")
    private String code;

    @ApiModelProperty(value = "批次号")
    @ExcelProperty(value = "批次号")
    private String batchCode;

    @ApiModelProperty(value = "编码类型：1-成品，2-配件")
    @ExcelProperty(value = "编码类型", converter = CodeStoreStatusIntegerToStringConverter.class)
    private Integer type;

    @ApiModelProperty(value = "商品品牌")
    @ExcelProperty(value = "商品品牌")
    private String brand;

    @ApiModelProperty(value = "商品型号")
    @ExcelProperty(value = "商品型号")
    private String goodsModel;

    @ApiModelProperty(value = "商品分类")
    @ExcelProperty(value = "商品分类")
    private String goodsType;

    @ApiModelProperty(value = "商品规格")
    @ExcelProperty(value = "商品规格")
    private String goodsSpecName;

    @ApiModelProperty(value = "编码激活状态")
    @ExcelProperty(value = "激活状态")
    private String activeStatus;

    @ApiModelProperty(value = "一物一码状态")
    @ExcelProperty(value = "编码状态", converter = CodeStoreStatusIntegerToStringConverter.class)
    private Integer codeStatus;

    @ApiModelProperty(value = "编码出入库状态")
    @ExcelProperty(value = "编码出入库状态", converter = CodeStoreStatusIntegerToStringConverter.class)
    @ColumnWidth(value = 20)
    private Integer storeStatus;

    @ApiModelProperty(value = "创建时间")
    @ExcelProperty(value = "创建时间")
    private Date createTime;
}
